//
//  cellOfAll.m
//  mintHome
//
//  Created by 朱彦名 on 16/6/21.
//  Copyright © 2016年 朱彦名. All rights reserved.
//

#import "cellOfAll.h"

@implementation cellOfAll
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self configCell];
    }
    return self;
}

- (void)configCell{
    self.image1 = [[UIImageView alloc]init];
    [self.contentView addSubview:self.image1];
    self.image1.backgroundColor = [UIColor redColor];
    
    self.labelOfUp = [[UILabel alloc]initWithFrame:CGRectMake(50, 30, SCREEN_WIDTH - 100, 50)];
    [self.contentView addSubview:self.labelOfUp];
    //self.labelOfUp.backgroundColor = [UIColor yellowColor];
    self.labelOfUp.textAlignment = 1;
    self.labelOfUp.textColor = [UIColor whiteColor];
    
    self.viewOfMid = [[UIView alloc]initWithFrame:CGRectMake(10, 90, SCREEN_WIDTH - 20, 1)];
    [self.contentView addSubview:self.viewOfMid];
    self.viewOfMid.backgroundColor = [UIColor whiteColor];
    
    self.labelOfDown = [[UILabel alloc]initWithFrame:CGRectMake(0, 100, SCREEN_WIDTH, 30)];
    [self.contentView addSubview:self.labelOfDown];
    //self.labelOfDown.backgroundColor = [UIColor yellowColor];
    self.labelOfDown.textAlignment = 1;
    self.labelOfDown.textColor = [UIColor whiteColor];
    
    

}
- (void)layoutSubviews{
    [super layoutSubviews];
    self.image1.frame = CGRectMake(0, 0, SCREEN_WIDTH, self.frame.size.height - 10);
    

}

@end
